<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<script type="text/javascript">
    
function showToast(host,params) {
    var url = "iostest://"+host+"?"+params;
    document.location.href = url;
}
function showAlert(host,params) {
        alert("提示信息！ //");
}
function activeHandiOS(host,params) {
    var url = "activeTest://"+host+"?"+params;
    document.location.href = url;
}
function activeHandiOSB(host) {
    var url = "activeTest://"+host;
    document.location.href = url;
}
<!--供iOS调用-->
function alertTest(str){
    alert(str);
}
</script>


<style>
</style>


</head>

<body>
<span id="localdate"></span>
<span id="helloweb"></span>
<center>
<br/><br/>
<input type="button" value="测试按钮1" onClick="showToast('test1','alert=showAndroidToast')" style="width:300px;height:30px" />
<br/><br/>
<input type="button" value="直接调用-带参数" onClick="activeHandiOS('handleFromH5A','alert=showCamera')" style="width:300px;height:30px" />
<br/><br/>
<input type="button" value="直接调用-无参数" onClick="activeHandiOSB('handleFromH5B')" style="width:300px;height:30px" />
<br/><br/>
<input type="button" value="html弹框" onClick="showAlert('test3','alert=showAlert')" style="width:300px;height:30px" />
<br/><br/>
</center>
</body>
</html>
